#include "ThreadV2.hpp"
#include <memory>
#include <unordered_map>
// 对于线程传参测式
#define NUM 5

class threadData
{
public:
    int max;
    int start;
};

void Count(threadData td)
{
    for (int i = td.start; i < td.max; i++)
    {
        std::cout << "i == " << i << std::endl;
        sleep(1);
    }
}

int main()
{
    // ThreadModule::Thread<int> t(Count, 10);

    threadData td;
    td.max = 60, td.start = 50;
    ThreadModule::Thread<threadData> t(Count, td);
    t.Start();

    t.Join();
    return 0;
}